Skip to content

Consolidate snyk scanning GHA#4067

Merged
swcurran merged 2 commits intoopenwallet-foundation:mainfrom
esune:chore/snyk-scan-gha
Feb 25, 2026
Merged

Consolidate snyk scanning GHA#4067
swcurran merged 2 commits intoopenwallet-foundation:mainfrom
esune:chore/snyk-scan-gha

Conversation

@esune
Copy link
Member

@esune esune commented Feb 24, 2026

The snyk scanning GHA was failing for LTS branches, presumably due to a change in behaviour in the cli after a recent update. We also had two different scan actions in the repo doing the same, so this PR consolidates the workflow to be run on both main and lts branches.

Previously, the lts branch only used the monitor task, however it seems like it may be good practice to have test + monitor on both main and lts branches so I proceeded in this direction. If this is not desirable we can scope the execution of the monitor task just to lts branches.

Resolves #4021

Signed-off-by: Emiliano Suñé <emiliano.sune@gmail.com>
@esune esune force-pushed the chore/snyk-scan-gha branch from fb387cd to 6258dbe Compare February 24, 2026 19:52
Signed-off-by: Emiliano Suñé <emiliano.sune@gmail.com>
@sonarqubecloud
Copy link

push:
branches:
- main
- '**.lts' # LTS release branches (e.g., 0.12.lts, 1.2.lts)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to include only active LTS branches? For example, 1.2.lts and 1.3.lts are still supported, 0.12.lts is not. 1.2.lts support will be dropped in April. We won't do anything (AFAIK) if a vulnerability is found in unsupported LTS branches.

If we dropped 0.X.lts, it would mean we wouldn't need to add aries_cloudagent below. Not a big deal, but there you go...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we are not going to support 0.12.lts any longer then the aries_cloudagent path becomes obsolete, yes. Happy to remove it if we are not going to release on that branch anymore, it shouldn't hurt leaving it in otherwise.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But if you are going to run on all **.lts branches, we need to keep it. Only drop it if you make the branch selector more precise.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then I think I'd leave it so we don't have to continuously update the GHA to pick the right branch - the action will trigger if we push to an LTS branch, which would mean we need a new release for it.

@swcurran swcurran merged commit 4e2e9d2 into openwallet-foundation:main Feb 25, 2026
12 checks passed
@esune esune deleted the chore/snyk-scan-gha branch February 25, 2026 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Look into GHA for Scanning LTS branches

3 participants